package com.showsu.editor.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: William
 * @Description:
 * @Date: Created in 2:27 下午 2024/9/14
 * @Modified By:
 */
@Data
@TableName("tbl_user_privilege")
public class TblUserPrivilege implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 权益名称
     */
    private String privilegeName;
    /**
     * 当日剩余次数
     */
    private Integer remainTimes;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 删除标识(0,未删除。1.已删除)
     */
    private Integer flag;

    public TblUserPrivilege() {}

    public TblUserPrivilege(Long userId, String privilegeName, Integer remainTimes) {
        this.userId = userId;
        this.privilegeName = privilegeName;
        this.remainTimes = remainTimes;
    }
}
